package com.mz.mattress.admin.api.admin;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.mz.mattress.admin.api.req.CouponSendRecordQueryReq;
import com.mz.mattress.admin.service.CouponSendRecordService;
import com.mz.mattress.api.common.Constants;
import com.mz.mattress.api.common.Result;
import com.mz.mattress.api.entity.CouponSendRecord;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;


@Slf4j
@RestController
@RequestMapping(Constants.ADMIN_PATH + "couponSendRecord")
public class CouponSendRecordController {

    @Autowired
    private CouponSendRecordService couponSendRecordService;

    @GetMapping("/listPage")
    public Result<IPage<CouponSendRecord>> listPage(CouponSendRecordQueryReq req) {
        return couponSendRecordService.listPage(req);
    }


}
